/*
 * @Date: 2022-04-25 21:16:31
 * @LastEditors: csh
 * @LastEditTime: 2022-08-22
 * @FilePath: /wochat-vue3-ts-pinia/src/service/chat/contactService.ts
 * @Description:
 */

import { Contact } from '@/service/entity/Contact';

class contactService {
  loadContacts() {
    const contacts = [
      new Contact(
        'chatContacts1',
        '黄渤',
        '老狼老狼几点了？',
        '1分钟前',
        'avator/huangbo.jpeg',
        {},
        3,
      ),
      new Contact(
        'chatContacts2',
        '张学友',
        '嘿陪人们流泪',
        '1天前',
        'avator/zxy.jpeg',
        {},
        3,
      ),
      new Contact(
        'chatContacts3',
        '安吉丽娜 朱莉',
        'Happy new year',
        '上个月',
        'avator/ajlnzl.jpeg',
        {},
        0,
      ),
      new Contact(
        'chatContacts4',
        '皮卡丘',
        '皮卡皮卡，丘～',
        '2020-02-02',
        'avator/pkq.jpg',
        {},
        3,
      ),
    ];

    return contacts;
  }
}

export default new contactService();
